home *** CD-ROM | disk | FTP | other *** search
- Path: lyra.csx.cam.ac.uk!mgb
- From: mgb@mail.ast.cam.ac.uk (Martin Beckett)
- Newsgroups: comp.lang.c
- Subject: Yet another Arrays of Arrays question
- Date: 27 Jan 1996 19:15:07 GMT
- Organization: Institute of Astronomy, Cambridge
- Message-ID: <4edtjr$im9@lyra.csx.cam.ac.uk>
- References: <4e4b6n$mph@news.texas.net> <4edt35$c3v@castle.nando.net>
- NNTP-Posting-Host: cass02.ast.cam.ac.uk
-
- Hi, I have a problem with creating an array of arrays of strings.
-
- The error reporting routine in my program is given two number which specify
- the module reporting the error and the error number.
-
- Each module defines a list of error message strings in an array
- char *module1_error[] = { "error 1","error 2" .. etc }
-
- These must be put into a global array of arrays so that eg. global_error[1][3];
- Finds the string for error message3 in module1.
-
- I can't seem to get the defination for the global array correct.
-
- Any Ideas ?
-
- Martin Beckett
-
-
- ----------------------------------------------------------------------------
- Martin Beckett, Institute of Astronomy, University of Cambridge
- Tel: 01223 337453 Fax: 01223 337523 Email: mgb@ast.cam.ac.uk
-